package cn.tedu.csmall.passport.mapper;

import cn.tedu.csmall.passport.pojo.entity.AdminRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * @author Administrator
 * @description 针对表【ams_admin_role(管理员角色关联)】的数据库操作Mapper
 * @createDate 2023-06-19 14:28:54
 * @Entity generator.domain.AdminRole
 */
@Repository
public interface AdminRoleMapper extends BaseMapper<AdminRole> {

    //insert into ams_admin_role
    // (admin_id,role_id,gmt_create,gmt_modified)
    // values
    // (?,?,?,?),(?,?,?,?),(?,?,?,?),(?,?,?,?)
    //
    // List<AdminRole>
    // AdminRole[]
    // AdminRole...
    //批量插入

    int insertBatch(AdminRole[] adminRolesList);

    int deleteByAdminId(Long id);
}




